/**
 * Created by lenovo on 2017/2/15.
 */
/**
 * Created by zdx on 2016/8/26 0026.
 */


module.exports = function (grunt) {

    grunt.initConfig({
        less: {
            lessall: {
                files: [{
                    expand:true,
                    cwd:'css/style',
                    src:'*.less',
                    dest: 'css/style',
                    ext: '.min.css'
                }],
                options: {
                    compress: true
                }
            }
        },

        watch: {
            lesstocss: {
                files: ['css/style/*.less'],
                tasks: ['less']
            },

        }
    });

    grunt.loadNpmTasks('grunt-contrib-less');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-concat');
    /*grunt.loadNpmTasks('grunt-contrib-jshint');*/

    grunt.registerTask('default', ['less','watch']);
};
